#pragma once
#pragma once
#include<iostream>
#include<vector>
#include<algorithm>
#include<string>
using namespace std;

void moveZeroes(vector<int>& nums);
void duplicateZeros(vector<int>& arr);
bool isHappy(int n);
int maxArea(vector<int>& height);
int triangleNumber(vector<int>& nums);
vector<int> twoSum(vector<int>& price, int target);



vector<vector<int>> threeSum(vector<int>& nums);

vector<vector<int>> fourSum(vector<int>& nums, int target);
int minSubArrayLen(int target, vector<int>& nums);

int lengthOfLongestSubstring(string s);

int longestOnes(vector<int>& nums, int k);
int longestOnes(vector<int>& nums, int k);

int totalFruit(vector<int>& fruits);

vector<int> findAnagrams(string s, string p);
vector<int> findSubstring(string s, vector<string>& words);

int search(vector<int>& nums, int target);

vector<int> searchRange(vector<int>& nums, int target);